Skip to content

Use the SARA U-201 modem for storing OTA update image. #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 6, 2020
Merged

Conversation

aentinger
Copy link
Contributor

@aentinger aentinger commented Jul 6, 2020

In order to enable OTA you need to extend your sketch the following way:

#include <SSU.h>
#include <utility/ota/OTAStorage_MKRGSM.h>
/* ... */
static OTAStorage_MKRGSM ota_storage;
/* ... */
void setup()
{
  ArduinoCloud.begin(ArduinoIoTPreferredConnection, "mqtts-sa.iot.oniudra.cc");
  ArduinoCloud.setOTAStorage(ota_storage);
  /* ... */

Furthermore you have to enable the MKR GSM as OTA storage module by editing ArduinoIoTCloud_Config.h

-  #define OTA_STORAGE_MKRGSM        (0)
+  #define OTA_STORAGE_MKRGSM        (1)

gsm-json.zip
Upload to board via

./ota-upload.sh CLIENT_ID CLIENT_SECRET DEVICE_ID [gsm-ota.json|gsm-local.json]

@codecov-commenter
Copy link

codecov-commenter commented Jul 6, 2020

Codecov Report

Merging #153 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #153   +/-   ##
=======================================
  Coverage   95.59%   95.59%           
=======================================
  Files          29       29           
  Lines         998      998           
=======================================
  Hits          954      954           
  Misses         44       44           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d589f5b...4b7b489. Read the comment docs.

aentinger added 4 commits July 6, 2020 13:14
…ince the MKRGSM library is only available when the AIoTC stack is compiled for MKR GSM 1400
…t needs to be set to 250 ms between 2 consecutive MQTT chunks
@arduino-libraries arduino-libraries deleted a comment from github-actions bot Jul 6, 2020
@github-actions
Copy link

github-actions bot commented Jul 6, 2020

Memory usage change @4b7b489866215bbb96af762ea4f52d0f4db3daec

FQBN Flash Usage RAM For Global Variables
arduino:samd:mkr1000 0 0
arduino:samd:mkrgsm1400 0 0
arduino:samd:mkrnb1500 0 0
arduino:samd:mkrwan1300 0 0
arduino:samd:mkrwifi1010 0 0
arduino:samd:nano_33_iot 0 0
esp8266:esp8266:huzzah 0 0

@arduino-libraries arduino-libraries deleted a comment from github-actions bot Jul 6, 2020
@aentinger aentinger merged commit cdf9714 into master Jul 6, 2020
@aentinger aentinger deleted the ota-gsm branch July 6, 2020 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants